<?php

function encrypt_password($password) {
  $password = md5($password);
  for ($i = 0; $i < 100; $i++) {
    $password = sha1($i . $password);
  }
  return $password;
}